{temp('kefu/head')}
</head>
<body>
	<div class="pd-20">
		<div class="form form-horizontal" id="form-article-add">
			<div class="row cl">
				<label class="form-label col-2">课件名称:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['name']}
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">课件内容:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['content']}
				</div>
			</div>
			{if($r['shipin'])}
			<div class="row cl">
				<label class="form-label col-2">视频:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					<script src="{$adstyle}/js/video_a5/video.js"></script>
					<script type="text/javascript">
						player('{$lj}',500,300,0,"{$adstyle}/js/video_a5/start.jpg",'{$_url}');
					</script>
				</div>
				<button style="border:0px;color:#ffffff;background-color:#68b828;padding:4px 8px;cursor:pointer;margin-left:325px;margin-top:3px;" onClick="">下载</button>
				<div style="margin-left:725px;margin-top:3px;">优酷播放地址
					<input type="text" class="input-text" style="width:300px;"/>
					<div style="color:red;">(将上传到优酷并通过审核的视频播放地址填写到这里)</div>
				</div>
			</div>
			{/if}
			<div class="row cl">
				<label class="form-label col-2">应扣积分:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{$r['jifen']}
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">发表日期:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					{code(echo date('Y-m-d H:i:s',$r['time']))}
				</div>
			</div>
			
			<div class="row cl">
				<label class="form-label col-2">拒绝原因:</label>
				<div class="formControls col-2" style="margin-top:3px;">
					<textarea rows="10" cols="50" id="jjyy" placeholder="拒绝时请填写原因">{if(@$r['jjyy'])}{$r['jjyy']}{/if}</textarea>
				</div>
			</div>
			
			<div class="row cl">
				<div class="col-10 col-offset-2">
					<button onClick="xiu(1);" class="btn btn-primary radius" type="submit">&nbsp;&nbsp;通过&nbsp;&nbsp;</button>
					<button onClick="xiu(2);" class="btn btn-default radius" type="button">&nbsp;&nbsp;拒绝&nbsp;&nbsp;</button>
				</div>
			</div>
			
			
			<!-- <a href="{$_url}/kefu/?act=shenhe&met=download">xz</a> -->
			
				
		</div>
	</div>
	<script type="text/javascript">
	function xiu(zt){
		var id = {$r['id']};
		var zjid = {$r['zjid']};
		var jjyy = $('#jjyy').val();
		$.post('{$_url}/kefu/?act=shenhe&met=kj_xiu',{id:id,zjid:zjid,zt:zt,jjyy:jjyy},function(data){
			if(data == 'cg'){
				layer.alert('修改成功');
				setTimeout(function(){parent.location.reload()},800);return ;
			}else if(data == 'error'){
				layer.alert('修改失败');return ;
			}else if(data == '-1'){
				layer.alert('填写拒绝原因');return ;
			}
		});
	}
	</script>
	{temp('kefu/foot')}
</body>
</html>